package com.lb.mybatis.app;

import com.lb.bean.User;
import com.lb.mybatis.core.MapperProxyFactory;

import java.util.List;

/**
 * @ClassName： MyApplication
 * @Description：
 * @Author: 蓝莲花
 * @Date： 2024/1/13 21:14
 * @Version： V1.0
 */
public class MyApplication {
    public static void main(String[] args) {

        UserMapper userMapper = MapperProxyFactory.getMapper(UserMapper.class);

        List<User> list = userMapper.findUserList("zhangsan");

        System.out.println(list);

//        SqlSession sqlSession = new DefaultSqlSession();
//        sqlSession.getMapper();
//
//        MapperFactoryBean;
//        MapperScannerRegistrar;
//        ClassPathMapperScanner;
//        MybatisAutoConfiguration


    }
}
